const animals = [
    "antelope", "badger", "bat", "bear", "bee", "beetle", "bison", "boar", "butterfly", "cat",
    "caterpillar", "chimpanzee", "cockroach", "cow", "coyote", "crab", "crow", "deer", "dog",
    "dolphin", "donkey", "dragonfly", "duck", "eagle", "elephant", "flamingo", "fly", "fox",
    "goat", "goldfish", "goose", "gorilla", "grasshopper", "hamster", "hare", "hedgehog",
    "hippopotamus", "hornbill", "horse", "hummingbird", "hyena", "jellyfish", "kangaroo",
    "koala", "ladybugs", "leopard", "lion", "lizard", "lobster", "mosquito", "moth", "mouse",
    "octopus", "okapi", "orangutan", "otter", "owl", "ox", "oyster", "panda", "parrot",
    "pelecaniformes", "penguin", "pig", "pigeon", "porcupine", "possum", "raccoon", "rat",
    "reindeer", "rhinoceros", "sandpiper", "seahorse", "seal", "shark", "sheep", "snake",
    "sparrow", "squid", "squirrel", "starfish", "swan", "tiger", "turkey", "turtle", "whale",
    "wolf", "wombat", "woodpecker", "zebra"
];

const IMAGE_CLASS_KEYWORD_MAP = {
    'antelope': '羚羊',
    'badger': '獾',
    'bat': '蝙蝠',
    'bear': '熊',
    'bee': '蜜蜂',
    'beetle': '甲虫',
    'bison': '野牛',
    'boar': '野猪',
    'butterfly': '蝴蝶',
    'cat': '猫',
    'caterpillar': '毛毛虫',
    'chimpanzee': '黑猩猩',
    'cockroach': '蟑螂',
    'cow': '牛',
    'coyote': '郊狼',
    'crab': '螃蟹',
    'crow': '乌鸦',
    'deer': '鹿',
    'dog': '狗',
    'dolphin': '海豚',
    'donkey': '驴',
    'dragonfly': '蜻蜓',
    'duck': '鸭子',
    'eagle': '鹰',
    'elephant': '大象',
    'flamingo': '火烈鸟',
    'fly': '苍蝇',
    'fox': '狐狸',
    'goat': '山羊',
    'goldfish': '金鱼',
    'goose': '鹅',
    'gorilla': '大猩猩',
    'grasshopper': '蚱蜢',
    'hamster': '仓鼠',
    'hare': '野兔',
    'hedgehog': '刺猬',
    'hippopotamus': '河马',
    'hornbill': '犀鸟',
    'horse': '马',
    'hummingbird': '蜂鸟',
    'hyena': '鬣狗',
    'jellyfish': '水母',
    'kangaroo': '袋鼠',
    'koala': '考拉',
    'ladybugs': '瓢虫',
    'leopard': '豹',
    'lion': '狮子',
    'lizard': '蜥蜴',
    'lobster': '龙虾',
    'mosquito': '蚊子',
    'moth': '蛾子',
    'mouse': '老鼠',
    'octopus': '章鱼',
    'okapi': '奥卡比',
    'orangutan': '猩猩',
    'otter': '水獭',
    'owl': '猫头鹰',
    'ox': '牛',
    'oyster': '牡蛎',
    'panda': '熊猫',
    'parrot': '鹦鹉',
    'pelecaniformes': '鹈鹕目',
    'penguin': '企鹅',
    'pig': '猪',
    'pigeon': '鸽子',
    'porcupine': '豪猪',
    'possum': '负鼠',
    'raccoon': '浣熊',
    'rat': '老鼠',
    'reindeer': '驯鹿',
    'rhinoceros': '犀牛',
    'sandpiper': '鹬',
    'seahorse': '海马',
    'seal': '海豹',
    'shark': '鲨鱼',
    'sheep': '绵羊',
    'snake': '蛇',
    'sparrow': '麻雀',
    'squid': '鱿鱼',
    'squirrel': '松鼠',
    'starfish': '海星',
    'swan': '天鹅',
    'tiger': '老虎',
    'turkey': '火鸡',
    'turtle': '乌龟',
    'whale': '鲸鱼',
    'wolf': '狼',
    'wombat': '袋熊',
    'woodpecker': '啄木鸟',
    'zebra': '斑马'
};

function conv2cn(index) {
    return IMAGE_CLASS_KEYWORD_MAP[animals[index]];
}
function convTime(timeStr){
	const date = new Date(timeStr);
	
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0'); // 使用 padStart 进行填充
const day = String(date.getDate()).padStart(2, '0');
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
	
	return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`

}
export {conv2cn,convTime} 
